package org.lc.stk.web.dto.chapter;

import java.util.ArrayList;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "章节树形结构响应")
public class ChapterTreeResponseDTO {
    
    @Schema(description = "章节ID")
    private Integer id;
    
    @Schema(description = "章节名称")
    private String name;
    
    @Schema(description = "排序")
    private Integer sort;
    
    @Schema(description = "子章节列表")
    private List<ChapterTreeResponseDTO> children = new ArrayList<>();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public List<ChapterTreeResponseDTO> getChildren() {
        return children;
    }

    public void setChildren(List<ChapterTreeResponseDTO> children) {
        this.children = children;
    }
}